package com.wn.product;

import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

/**
 * @author yellow Docter
 * @date 2023 -07-25
 * @desc
 *  测试 topic 交换机
 *
 */
@SpringBootTest
public class RabbitMQTest04 {

    @Autowired
    private Product04 product04;

    @Test
    public void demo01(){

        product04.send("abc.orange.abc","消息在C1中进行消费");
        product04.send("lazy.orange.abc","消息在C1中进行消费、在C2中进行消费");
        product04.send("lazy.orange.rabbit","消息在C1中进行消费、在C2中进行消费");
        product04.send("lazy.rabbit","在C2中进行消费");
        product04.send("abc.orange.rabbit","消息在C1中进行消费、在C2中进行消费");

    }
}